# -*- coding: utf-8 -*-
import random
from flask import Flask,url_for,redirect,render_template
app = Flask(__name__)
@app.route('/')
def hello_world():
    rad1 = random.randint(1,3)

    goods = [
        {'name': '衣服', 'price': 138.00},
        {'name': '裤子', 'price': 150.00},
        {'name': '外套', 'price': 187.00},
        {'name': '长袖', 'price': 38.00}
    ]
    return render_template('shop.html', **locals())

if __name__ == '__main__':
    app.run(debug=True, host='0.0.0.0', port=8888)